<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .vedio {
      position: relative;
      width: 402px;
      height: 224px;
      margin: 100px auto;
    }

    .vedio img {
      width: 100%;
      height: 100%;
    }

    .mask {
      /* 隐藏遮罩层 */
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2) url("./images/play-icon.webp") no-repeat center;
      background-size: 40px;
    }

    /* 鼠标经过vedio盒子的时候，就让里面的遮罩层显示出来 */
    .vedio:hover .mask {
      display: block;
      transform: scale(1.05);
    }

    .vedio:hover img {
      transform: scale(1.05);
    }
  </style>
</head>

<body>
  <div class="vedio">
    <img src="./images/potatoVedio.jfif" alt="">
    <div class="mask"></div>
  </div>
</body>

</html>